define(function(){
	
	
	return {
		//节流
		throttle : function(fn,interval){
		
					// console.log("test1111");
					
					let start = new Date().getTime();
					
					return function(){
						
						let now = new Date().getTime();
						
						if(now - start >interval){
							
							fn();
							
							start = now;
						}
					}
		
				},
		//
		
	}
	
})